#ifndef DELETEDCLIENT_H
#define DELETEDCLIENT_H

#include <QMainWindow>
#include <QWidget>
#include <QSqlDatabase>
#include <QSqlRelationalTableModel>
#include <QTableView>
#include <QSqlError>
#include <QMessageBox>
#include <QDebug>
#include <QString>
#include <QMessageBox>
#include <QKeyEvent>
#include <QKeySequence>
#include <QShortcut>

namespace Ui {
class DeletedClient;
}

class DeletedClient : public QWidget
{
    Q_OBJECT

public:
    explicit DeletedClient(QWidget *parent = 0);
    ~DeletedClient();

    void SelectDeletedClients();

private slots:
    void on_cerrarBtn_clicked();

private:
    Ui::DeletedClient *ui;
};

class DeletedClientSqlTableModel : public QSqlRelationalTableModel
{
    Q_OBJECT
public:
    DeletedClientSqlTableModel(QObject * parent = 0, QSqlDatabase db = QSqlDatabase())
        : QSqlRelationalTableModel(parent,db) {;}
    QVariant data (const QModelIndex & index, int role = Qt::DisplayRole) const
    {
        if (role == Qt::TextAlignmentRole) {
            int col = index.column();
            if (col == 0 || col == 3 || col == 4) {
                return QVariant(Qt::AlignVCenter | Qt::AlignHCenter);
            }
        }

        if (role == Qt::FontRole) {
            return QVariant (QFont("Helvetica57-Condensed"));
        }

        return QSqlRelationalTableModel::data(index,role);
    }
};

#endif // DELETEDCLIENT_H
